<script>
	//import uniIdPagesInit from '@/uni_modules/uni-id-pages/init.js';
	export default {
		
		onLaunch: function() {
			// console.log('App Launch');
			//uniIdPagesInit();

			//检测用户是否登录
			var info = uni.getStorageSync("userinfo");
			if (info.username == '' || typeof(info.username) == 'undefined' || info.token == '' || typeof(info.token) ==
				'undefined') {
				return;
			}else{
				uni.reLaunch({
					//url: "/pages/index/index"
				})
			}
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
	/*每个页面公共css */
	@import url("./common/uni.css");
	@import url("./common/uni-nvue.css");
	@import url("./common/global.css");
	@import url("./common/common.css");
	.submit_btn{
		text-align: center;
		display: block;
		//padding: 60upx 0 0;
	}
	.submit_btn .cu-btn{
		display: block;
		height: 88upx;
		color: #fff;
		line-height: 88upx;
		font-size: 32upx;
		background: linear-gradient( 180deg, #9dc1ff 0%, #508ffd 100%);
		border-radius: 50rpx;
	}
</style>
